<?php

declare(strict_types=1);

namespace App\Common\Model;

use Mine\MineModel;

/**
 * @property int $id 
 * @property string $name 名称
 * @property int $pid 父ID
 * @property string $code 编码
 * @property string $first_letter 首字母
 * @property int $level 级别
 * @property \Carbon\Carbon $created_at 创建时间
 * @property \Carbon\Carbon $updated_at 更新时间
 */
class Region extends MineModel
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'region';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'name', 'pid', 'code', 'first_letter', 'level', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'pid' => 'integer', 'level' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
